<!--河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
-->
<template>
  <div class="app-container">
    <el-form id="mvcfm">
      <el-row>
        <el-col :span="25" :xs="24">
          <div class="form-unit">
            <span class="mvc-title-left"> 盘存 </span>
          </div>
          <el-table :data="p_quote">
            <el-table-column label="#" align="center" type='index'>
            </el-table-column>
            <el-table-column label="盘存" prop="quote_id">
              <template slot-scope="scope">
                <el-link @click="gotoPage('/psi/supplychainmana/InventoryDetMy?CMID='+scope.row.quote_id+''+vueparams+'')" type='primary'>盘存-{{emt.map['quote_id']}}</el-link>
              </template>
            </el-table-column>
            <el-table-column label="盘存开始时间" prop="">
            </el-table-column>
            <el-table-column label="盘存要求时间" prop="">
            </el-table-column>
            <el-table-column label="任务确定人" prop="">
            </el-table-column>
            <el-table-column label="任务确定时间" prop="">
            </el-table-column>
            <el-table-column label="状态" prop="">
            </el-table-column>
          </el-table>
          <pagination v-show="total>0" :total="total" :limit.sync="pageSize" @pagination="getPage" />
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>
<script>
  import request from '@/utils/request'
  export default {
    name: 'InventoryTask',
    components: {},
    props: ['popparams'],
    data() {
      return {
        vueparams: this.getVUEParams(""),
        p_quote: [],
        loading: false,
        rules: {}
      }
    },
    created() {
      this.getData();
    },
    updated() {},
    mounted() {},
    methods: {
      getData() {
        request({
          method: 'get',
          url: '/xcapi/VUEAction/psi/main/InventoryAction/inventoryTask?' + this.vueparams,
        }).then(data => {
          for (var k in data) {
            if (Array.isArray(data[k])) {
              this[k] = data[k];
            } else {
              $.extend(this[k], data[k]);
            }
          }
          this["l_class"] = this.loadTreeTable(this["l_class"], "product_classid", "product_higher");
          this["l_firm"] = this.loadTreeTable(this["l_firm"], "firm_id", "firm_higher");
        })
      },
    },
  }
</script>
